from PyQt6.QtWidgets import QTableWidgetItem

class WindowStatus:
    @staticmethod
    def update_status(table, row, status):
        """更新窗口状态"""
        table.setItem(row, 5, QTableWidgetItem(status))
    
    @staticmethod
    def update_activate_status(table, row, is_active):
        """更新激活状态"""
        status = "已激活" if is_active else "未激活"
        table.setItem(row, 4, QTableWidgetItem(status)) 